"""存放常量数据"""
import os
import time

exit_flag = False

TEST_PLATFORM_PATH = 'https://platformcallback.shining3d.com.cn/api/resulthook'
# -------------------------------项目内部路径--------------------------------------------------------
# 项目根路径
base_path = os.path.abspath((os.path.abspath(__file__) + '/..'))

# 项目临时配置文件
temp_cfg_path = os.path.join(base_path, 'proSetting.json')

# 项目文件夹static路径
static_path = base_path + '/static'

# 项目配置文件路径
config_path = base_path + '/config.yml'

# 项目time.json路径
time_json_path = base_path + '/time.json'

# 项目task_id.txt路径
taskId_path = base_path + "/task_id.txt"

# 项目日志路径
logs_path = base_path + '/logs'

# 项目报告路径
report_path = static_path + '/report'

# 项目截图路径
picture_path = static_path + '/picture'

# 项目需要图片路径
capture_image_path = static_path + '/capture_image'

# 项目需要文件路径
file_path = static_path + '/file'

json_data = static_path + '/json_data'

screening_conditions_json_path = json_data + '/screening_conditions.json'

# 记录用例信息
result_json_Path = json_data + '/testcase_result.json'

# 项目测试用例路径路径
test_data_path = base_path + '/test_data'

# 临时记录数据文件
temporary_data_path = os.path.join(test_data_path, 'temporary_data.yml')


# ----------------------外部static路径----------------------------------------------------------------
# 测试平台static下对应产品根目录
platform_product_path = os.path.abspath(os.path.join(base_path, '../static'))

# UI测试报告路径
test_report_ui_path = os.path.abspath(os.path.join(platform_product_path, 'ui_test_report'))

# UI日志图片路径 必现在外部static下面，不然无法访问
ui_log_image_path = os.path.abspath(os.path.join(platform_product_path, 'image_logs'))

# 读图文件位置
read_picture_path = r"D:\readpic\FreeScanOmni"

# ------------------UI路径--------------------------------------------
# 异常图片
ui_exception_image_path = os.path.join(base_path, r'static\exception_image')

